﻿@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>登录</title>
    <link href="~/Content/css/index.css" rel="stylesheet" />
    <link href="~/Content/css/ziy.css" rel="stylesheet" />
</head>
<body>
    <!--dengl-->
    <div class="beij_center">
        <div class="dengl_logo">
            <a href="@Url.Action("Index","Home")"><img src="~/Content/images/logo_1.png"></a>
            <h1>欢迎登录</h1>
        </div>
    </div>
    <div class="dengl_beij">

        <div class="banner_xin">
            <img src="~/Content/images/ss.jpg">
        </div>
        <div class="beij_center dengl_jvz">
            <div class="login_form">

                <div class="login_tab">
                    <h2>欢迎登录</h2>
                    <div class="dengl_erwm">
                        <a href="#"><img src="~/Content/images/er_wm.png"></a>
                        <div class="tanc_erwm_kuang">
                            <img src="~/Content/images/mb_wangid.png">
                            <div class="qrcode_panel">
                                <ul>
                                    <li class="fore1">
                                        <span>打开</span>
                                        <a href="#" target="_blank"> <span class="red">手机通城</span></a>
                                    </li>
                                    <li>扫描二维码</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>

                <form action="" method="post" id="Dologin">
                    <div class="kengl_kuang">
                        <div class="txt_kuang">
                            <input name="loginName" type="text" class="itxt" placeholder="邮箱/用户名/已验证手机"> <!--登录-->

                            <input name="loginPwd" type="text" class="itxt" placeholder="密码">                   <!--注册-->

                        </div>
                        <div class="remember">
                            <div class="fl">
                                <input type="checkbox">
                                <label for="autoLoginFlag">自动登录</label>
                            </div>
                            <div class="fr">
                                <a href="#" class="fl" target="_blank" title="忘记密码">忘记密码?</a>
                            </div>
                        </div>
                        <input name="button" type="submit" tabindex="5" value="登 录" class="btnnuw">
                    </div>
                </form>
                <div class="corp_login">
                    <div class="mingb_shoq"><a href="#">名榜授权登录！</a></div>
                    <div class="regist_link"><a href="/Home/Register" target="_blank"><b></b>立即注册</a></div>
                </div>
            </div>
        </div>
    </div>



    <div class="jianj_dib">
        <div class="beia_hao">
            <p>京ICP备：14012449号 黔ICP证：B2-20140009号  </p>
            <p class="gonga_bei">京公网安备：11010602030054号</p>
        </div>
    </div>
</body>
</html>
<script src="~/Scripts/jquery-1.8.2.js"></script>
<script src="~/Scripts/jquery-1.8.2.min.js"></script>
<script src="~/Scripts/layer/jquery-1.8.3.js"></script>
<script type="text/javascript">
    $(function () {
        $("#Dologin").submit(function () {
            var loginName = $("[name=loginName]").val();
            var loginPwd = $("[name=loginPwd]").val();
            $.post("@Url.Action("DoUserLogin","Home")", { loginName: loginName, loginPwd: loginPwd }, function (data) {
                if ("true" == data) {

                    location.href = "@Url.Action("Index", "Home")";
                } else {
                    alert("登录失败！");
                }
            })
            return false;
        })
    })
</script>
